package cn.geminis.lowcode.compiler.code;

import cn.geminis.lowcode.compiler.util.JdkTreeMakerUtils;
import com.sun.source.tree.ExpressionStatementTree;
import com.sun.source.tree.ExpressionTree;
import lombok.RequiredArgsConstructor;

/**
 * @author puddi
 */
@RequiredArgsConstructor
public class LcExec extends AbstractStatement<ExpressionStatementTree> {
    private final AbstractExpression<?> statement;

    @Override
    protected ExpressionStatementTree createJdkTree() {
        return JdkTreeMakerUtils.exec((ExpressionTree) this.statement.getJdkTree());
    }

}
